From 31d6fa36cc4b488a165fbe7d05c42d0dae98275f Mon Sep 17 00:00:00 2001 From: "cl349@firebug.cl.cam.ac.uk" Date: Mon, 5 Sep 2005 18:53:08 +0000 Subject: [PATCH] Add -Werror to xenstore build and fix failure. Signed-off-by: Christian Limpach --- tools/xenstore/Makefile | 2 +- tools/xenstore/xenstored_domain.c | 11 ----------- 2 files changed, 1 insertion(+), 12 deletions(-) diff --git a/tools/xenstore/Makefile b/tools/xenstore/Makefile index f94bd59d9d..13164f08d6 100644 --- a/tools/xenstore/Makefile +++ b/tools/xenstore/Makefile @@ -8,7 +8,7 @@ INSTALL_PROG = $(INSTALL) -m0755 INSTALL_DIR = $(INSTALL) -d -m0755 PROFILE=#-pg -BASECFLAGS=-Wall -W -g +BASECFLAGS=-Wall -W -g -Werror # Make gcc generate dependencies. BASECFLAGS += -Wp,-MD,.$(@F).d PROG_DEP = .*.d diff --git a/tools/xenstore/xenstored_domain.c b/tools/xenstore/xenstored_domain.c index 807a62fff4..e98a347a85 100644 --- a/tools/xenstore/xenstored_domain.c +++ b/tools/xenstore/xenstored_domain.c @@ -216,17 +216,6 @@ static int destroy_domain(void *_domain) return 0; } -static struct domain *find_domain(u16 port) -{ - struct domain *i; - - list_for_each_entry(i, &domains, list) { - if (i->port == port) - return i; - } - return NULL; -} - /* We scan all domains rather than use the information given here. */ void handle_event(int event_fd) { -- 2.30.2